﻿// -----------------------------------------------------------------------
// <copyright file="Job_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Job_BLL
    {
        public static List<Job> GetAll(int shipID)
        {
            return Job_DAL.GetAll(shipID);
        }
        public static Job TestExitsJobDescription(int id, int jobDescription)
        {
            return Job_DAL.TestExitsJobDescription(id, jobDescription);
        }
        public static List<Job> GetJobInRound(int roundID)
        {
            return Job_DAL.GetJobInRound(roundID);
        }
        public static List<Job> GetDataByEquipmentID(int id, int shipID, bool isChanged)
        {
            return Job_DAL.GetDataByEquipmentID(id, shipID, isChanged);
        }
        public static Job GetDataById(int id)
        {
            return Job_DAL.GetDataById(id);
        }
        public static Job GetDataByName(string name, int shipID)
        {
            return Job_DAL.GetDataByName(name, shipID);
        }
        public static Job GetDataByNumber(string code)
        {
            return Job_DAL.GetDataByNumber(code);
        }
        public static Job GetDataByDesc(string Description)
        {
            return Job_DAL.GetDataByDesc(Description);
        }
        public static bool Insert(Job job)
        {
            return Job_DAL.Insert(job);
        }
        public static bool TestBeforeDelete(Job job)
        {
            return Job_DAL.TestBeforeDelete(job);
        }
        public static bool Update(Job job)
        {
            return Job_DAL.Update(job);
        }
        public static Job GetLastJob()
        {
            return Job_DAL.GetLastJob();
        }
        public static bool Delete(Job job)
        {
            return Job_DAL.Delete(job);
        }
        public static bool DeleteByID(int id)
        {
            return Job_DAL.DeleteByID(id);
        }
        public static bool IsExits(Job job, int shipID)
        {
            return Job_DAL.IsExits(job, shipID);
        }
    }
}
